This is intended to be a more getting into the nitty gritty method of importing images for use with pytorch Based on the tutorial available here: https://medium.com/@josh_2774/deep-learning-with-pytorch-9574e74d17ad
# Import libraries
from PIL import Image
import numpy as np
from matplotlib.pyplot import imshow, hist
# Get one image
image_path = '/Users/zplab/Desktop/VeraPythonScripts/vera_autofocus/microscope_images/test/acceptable/16_0.png'
img = Image.open(image_path)
# Take a look at the .png image
from IPython.display import Image
Image(image_path)